﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TpWeb.Domain.BizObj;

namespace TpWeb.Domain.Repositories
{
    public interface IFiasRepository
    {
        IEnumerable<AddrObject> SelectRegions(string term, int count, string guid = null, string parentGuid=null);
        IEnumerable<AddrObject> SelectTowns(string term, int count, string guid = null, string parentGuid = null, int? regCode=null);
        IEnumerable<AddrObject> SelectStreets(string term, int count, string guid = null, string parentGuid = null, int? regCode = null);
        IEnumerable<AddrObject> SelectDistricts(string term, int count, string guid = null, string parentGuid = null);
        IEnumerable<AddrObject> SelectLocality(string term, int count, string guid = null, string parentGuid = null, int? regCode = null);
        IEnumerable<AddrObject> SelectPostalCodes(int term, int count);
        AddrObject GetAddrObject(string guid);
    }
}
